]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Fix name of initially hidden devices
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 4 Nov 2022 18:53:57 +0000 (19:53 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 17 Nov 2022 11:09:27 +0000 (11:09 +0000)
commitb2ff25b31d4e11601169f623b47ea503c93aed77
tree74e19f89d57aad0ad1d981833da859bec4d725a5
parenta33e3eaf22664597499dbd3fdee9b7d9ba80d28f
status/network: Fix name of initially hidden devices

We assign (disambiguated) device names every time a device is added
or removed, and store the name on the corresponding menu item.

However menu items are only created when the device should be shown,
not necessarily when it is added (unplugged ethernet cable, ongoing
initialization, ...).

Fix this by tracking device names separately from device items, and
set the name on newly created items.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6040

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2529>
js/ui/status/network.js